<%@ page language="java" import="pandora.dto.*,pandora.bo.login.*,java.util.*" %>
<%@ page import="pandora.bo.MRS.*" %>
<%@ page import="pandora.dto.*" %>
<%@ page import="java.util.*" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="pandora.bo.MRS.Estadisticas"%><html>


<head>
<title> LISTADO DE PRODUCTOS</title>
<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>
<body>
<div id="main"><jsp:include page="/head.jsp" />


<div id="wrapper">

<div id="main_body">

<p>
	SELECCIONE UNA PRODUCTO POR FAVOR
</p>

<p>
	<% 
		session = request.getSession();
		out.write("Usuario Logado: " + (String)session.getAttribute("session.user"));
		
	%>
</p>
<br><br>

	<% 
		
		Estadisticas est = new Estadisticas();
		List<ProductDTO> prod;
		prod = est.getListaProductos();
		
		String p;
		int i = 1;
		for(ProductDTO s: prod){
			
			out.write("<a href='FrontController?res=JSP/JSP_MRS/precios2.jsp'&barcode='"+  s.getBarcode() + "'>" + i + " - " +s.getProductName()+ " - " + " (" + s.getProductDetails() + ")</a><br>");
			i++;
		}
			
		
  	%>
		
	
	
	
	

	<br><br><a href="FrontController?res=menu.jsp">VOLVER</a>

</div>

</div>

<jsp:include page="/foot.jsp" /></div>
</body>

</html>